package org.crmsystem.dao;

import org.apache.ibatis.annotations.Param;
import org.crmsystem.model.SysMsg;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * The interface Sys msg mapper.
 */
@Repository
public interface SysMsgMapper {
    /**
     * Delete by primary key int.
     *
     * @param id the id
     * @return the int
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * Insert int.
     *
     * @param record the record
     * @return the int
     */
    int insert(SysMsg record);



    /**
     * Select all.
     *
     * @return the list
     */

    List<SysMsg> select();


    /**
     * 多条件查询
     *
     * @return the list
     */

    List<SysMsg> selectBy(Map sysMsg);

    /**
     * 多条件查询总记录数
     *
     * @return the list
     */

    int selectByTotalNum(Map sysMsg);


    /**
     * Select all.
     *
     * @return the list
     */

    List<SysMsg> selectByDate(@Param("start") Date start,@Param("end")Date end);


}